import unittest
from selenium import webdriver
from bs4 import BeautifulSoup

class PythonOrgSearch(unittest.TestCase):

    def setUp(self):
        options = webdriver.ChromeOptions()
        options.set_headless()
        self.driver = webdriver.Chrome(options=options)

    def test_search_in_python_org(self):
        driver = self.driver
        driver.get("http://www.baidu.com")
        soup = BeautifulSoup(driver.page_source,'html.parser')
        print(soup.find('p'))

    def tearDown(self):
        self.driver.close()
        pass


if __name__ == "__main__":
    unittest.main()